package com.toubutu.audio.admin.dto;


import com.toubutu.audio.admin.entity.Permission;
import com.toubutu.common.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * @author 戒躁
 * @version 1.0
 * @date 2023年10月02日 22:03
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("菜单信息Dto")
public class PermissionDto extends BaseDto<Permission> {
    @ApiModelProperty("权限id")
    private Integer id;

    @ApiModelProperty("权限名称")
    private String name;

    @ApiModelProperty("权限编码")
    private String code;
    @ApiModelProperty("父级id")
    private Integer parentId;

    @Override
    public Permission toPo() {
        return super.toPo();
    }
}
